package com.bawei.mall.user.mapper;

import com.bawei.mall.user.domain.CusUser;
import com.bawei.mall.user.domain.CusUserCoupon;
import com.bawei.mall.user.domain.MallUserCollectInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName CusUserMapper
 * @Description 描述
 * @Author ZiZheng.Li
 * @Date 2024/6/28 9:51
 */
@Mapper
@Component
public interface CusUserMapper {
    CusUser selectUserByUserName(@Param("username") String username);

    List<MallUserCollectInfo> selectCollectInfos(MallUserCollectInfo collect);

    void clearCollectInfos(@Param("productIds") List<Integer> productIds);

    List<CusUserCoupon> selectCouponInfos(@Param("useStatus") String useStatus);

    List<MallUserCollectInfo> getAllCollectInfos(@Param("userId") Long userId);
}
